var interfaceURL = {
    head:"http://" + window.location.host+"/gms",
    getVisitorOrderList: function () {
        return this.head + "/visitorBlock/fetchList";
    },
    revokeVisit: function () {
        return this.head + "/visitorBlock/undo";
    },
    addVisitOne: function () {
        return this.head + "/visitorBlock/save";
    },
    visitOne: function () {
        return this.head + "/visitorBlock/selectOne";
    },
    getDepartmentList: function () {
        return this.head + "/department/selectList";
    },
    getCompany: function () {
        return this.head + "/company/selecOne";
    },
    getVisitorCount: function () {
        return this.head + "/visitorBlock/stat";
    },
    getVisitorRecordList: function () {
        return this.head + "/record/fetchPage";
    },
    exportVisitorRecord: function (para) {
        return this.head + "/record/export" + para;
    },
    exportCount: function (para) {
        return this.head + "/visitorBlock/export" + para;
    },
    getRecordImg: function (id) {
        return this.head + "/record/getImg?id=" + id;
    },
    getImageById: function () {
        return this.head + "/company/getImg";
    },
    saveCompany: function () {
        return this.head + "/company/save";
    },
    departmentList: function () {
        return this.head + "/department/getInfo";
    },
    employeeList: function () {
        return this.head + "/department/findUserInfoByDepId";
    },
    getChildDepartment: function () {
        return this.head + "/department/selectChildDep";
    },
    getMenu: function () {
        return this.head + "/auth/findAllMenu";
    },
    getUserInfo: function () {
        return this.head + "/userInfo/findOne";
    },
    updateUserInfo: function () {
        return this.head + "/userInfo/update";
    },
    //图片删除
    deleteImg: function () {
        return this.head + "/company/deleteImg";
    },
    /*考勤管理*/
    getRuleList: function () {
        return this.head + "/attendanceRule/findAll";
    },
    getDeptList: function () {
        return this.head + "/attendanceRule/deptList";
    },
    getRuleById: function () {
        return this.head + "/attendanceRule/findOne";
    },
    saveRule: function () {
        return this.head + "/attendanceRule/save";
    },
    getHolidayList: function () {
        return this.head + "/holiday/findAll";
    },
    getHolidayDeptList: function () {
        return this.head + "/holiday/depList";
    },
    saveHoliday: function () {
        return this.head + "/holiday/save";
    },
    getHolidayById: function () {
        return this.head + "/holiday/findOne";
    },
    deleteHolidays: function () {
        return this.head + "/holiday/delete";
    },
    findDetailByDepId: function () {
        return this.head + "/holiday/findDetailByDepId";
    },
    statisRecord: function () {
        return this.head + "/attendanceRecord/statis";
    },
    historyRecord: function () {
        return this.head + "/attendanceRecord/historyRecord";
    },
    statisRecordDetail: function () {
        return this.head + "/attendanceRecord/findListByUserId";
    },
    showImage: function () {
        return this.head + "/attendanceRecord/showImage";
    },
    exportRecord: function () {
        return this.head + "/attendanceRecord/exportRecord";
    },
    exportStatis: function () {
        return this.head + "/attendanceRecord/exportStatis";
    },
    deleteDepartment: function () {
        return this.head + "/department/delete";
    },
    //系统管理
    getUserList: function () {
        return this.head + "/userInfo/findPage";
    },
    modifyRole: function () {
        return this.head + "/userInfo/updateRole";
    },
    getRoles: function () {
        return this.head + "/userInfo/roleList";
    },
    deleteUser: function () {
        return this.head + "/userInfo/disabled";
    },
    getRoleList : function(){
    	return this.head + "/role/findRoleList";
    },
    getMenuList : function(){
    	return this.head + "/role/findMenuList";
    },
    getMenuOne : function(){
    	return this.head + "/role/getMenu";
    },
    updateMenu : function(){
    	return this.head + "/role/addMenu";
    },
    deleteRole : function(){
    	return this.head + "/role/delete";
    },
    saveRole : function(){
    	return this.head + "/role/save";
    },
    createDepartment: function () {
        return this.head + "/department/insert";
    },
    updateDepartment:function () {
        return this.head + "/department/update";
    },
    /*数据管理 start*/
    backup:function () {
        return this.head + "/dataManager/backup";
    },
    recovery:function () {
        return this.head + "/dataManager/restore";
    },
    uploadFile:function () {
        return this.head + "/dataManager/upload";
    },
    download:function (para) {
        return this.head + "/dataManager/download"+ para;
    },
    saveMouthData:function (para) {
        return this.head + "/dataManager/saveData";
    },
    /*数据管理 end*/
    visitorList: function () {
        return this.head + "/company/visitorList";
    },
    attendancdList: function () {
        return this.head + "/company/attendancdList";
    },
    /*admin 重置密码*/
    resetPassword: function () {
        return this.head + "/userInfo/resetPwd";
    },
    getSaveTime : function () {
        return this.head + "/dataManager/getSaveTime";
    },
    
};
